package com.aaa.sbm.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @FileName: CustomExceptionHandler
 * @Description:通用自定义异常
 * @Author: zhz
 * @CreateTime: 2024/3/4 9:54
 * @Version: 1.0.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
//一定是继承的是RuntimeException异常，如果是Throwable或者Exception，都不行，就需要编写代码时，必须处理异常
public class CustomException extends RuntimeException{

    private  Integer  errorCode;
    private String  errorMessage;

  /*  public CustomExceptionHandler(Integer errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }*/


}
